//
//  HLLiveFemaleRequest.m
//  YueYue
//
//  Created by hulu001 on 2024/3/13.
//

#import "HLLiveFemaleRequest.h"

@implementation HLLiveFemaleRequest

- (id)init
{
    self = [super init];
    
    if (self) {
        self.page = 1;
    }
    
    return self;
}

- (NSString *)requestUrl
{
    return @"/get/live/female/list";
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodPOST;
}

- (id)requestArgument
{
    return @{@"pageNum":@(self.page), @"pageSize":HLListPageSize};
}

- (NSArray <HLLiveFemaleModel *> *)liveFemaleList
{
    NSArray *lists = @[];
    
    NSDictionary *data = [self.result valueForKey:@"data"];
    if (![data isKindOfClass:[NSDictionary class]]){
        return lists;
    }
    
    NSArray *records = [data valueForKey:@"records"];
    
    if (records.count > 0) {
       lists = [HLLiveFemaleModel mj_objectArrayWithKeyValuesArray:records];
    }
    
    return  lists;
}
@end
